package com.itqf.service;

import com.itqf.entity.PageBean;
import com.itqf.entity.Product;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

/**
 * 商品模块业务逻辑层接口
 */
public interface ProductService {

    PageBean<Product> findPage(String tid, int page, int pageSize) throws SQLException;

    Product findProductByPid(String pid) throws SQLException;

    List<Product> selectAll() throws IllegalAccessException, SQLException, InvocationTargetException;

    void addProduct(Product product) throws SQLException;
}
